/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import net.minecraft.client.Minecraft;
/*    */ import net.minecraft.client.gui.Gui;
/*    */ import net.minecraft.util.ResourceLocation;
/*    */ import org.lwjgl.opengl.GL11;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class uw
/*    */   extends Gui
/*    */ {
/* 15 */   public static final ResourceLocation m = new ResourceLocation("nbtedit", "textures/gui/widgets.png");
/*    */   
/* 17 */   private Minecraft l = Minecraft.func_71410_x();
/*    */   
/*    */   private yo<oy> t;
/*    */   
/*    */   private cq d;
/*    */   public int z;
/*    */   public int i;
/*    */   public int w;
/*    */   public int q;
/*    */   private String g;
/*    */   
/*    */   public uw(cq cq1, yo<oy> yo1, int i, int j) {
/* 29 */     this.d = cq1;
/* 30 */     this.t = yo1;
/* 31 */     this.w = i;
/* 32 */     this.q = j;
/* 33 */     this.i = this.l.field_71466_p.field_78288_b;
/* 34 */     updateDisplay();
/*    */   }
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   
/*    */   public boolean shouldDrawChildren() {
/* 46 */     return this.t.h();
/*    */   }
/*    */   
/*    */   public boolean clicked(int i, int j) {
/* 50 */     return z(i, j);
/*    */   }
/*    */   
/*    */   public boolean hideShowClicked(int i, int j) {
/* 54 */     if (this.t.z() && v(i, j)) {
/* 55 */       this.t.v(!this.t.h());
/* 56 */       return true;
/*    */     } 
/* 58 */     return false;
/*    */   }
/*    */   
/*    */   public yo<oy> getNode() {
/* 62 */     return this.t;
/*    */   }
/*    */   
/*    */   public void shift(int i) {
/* 66 */     this.q += i;
/*    */   }
/*    */   
/*    */   public void updateDisplay() {
/* 70 */     this.g = ts.v(this.t.v());
/* 71 */     this.z = this.l.field_71466_p.func_78256_a(this.g) + 12;
/*    */   }
/*    */   
/*    */   public void draw(int i, int j) {
/* 75 */     boolean bool1 = (this.d.getFocused() == this.t);
/* 76 */     boolean bool2 = z(i, j);
/* 77 */     boolean bool3 = v(i, j);
/* 78 */     int k = bool1 ? 255 : (bool2 ? 16777120 : (this.t.v() ? 14737632 : -6250336));
/*    */     
/* 80 */     this.l.field_71446_o.func_110577_a(m);
/*    */     
/* 82 */     if (bool1) {
/* 83 */       GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
/* 84 */       Gui.func_73734_a(this.w + 11, this.q, this.w + this.z, this.q + this.i, -2147483648);
/*    */     } 
/* 86 */     if (this.t.z()) {
/* 87 */       GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
/* 88 */       func_73729_b(this.w - 9, this.q, this.t.h() ? 9 : 0, bool3 ? this.i : 0, 9, this.i);
/*    */     } 
/*    */     
/* 91 */     GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
/* 92 */     func_73729_b(this.w + 1, this.q, (((oy)this.t.v()).v().func_74732_a() - 1) * 9, 18, 9, 9);
/* 93 */     func_73731_b(this.l.field_71466_p, this.g, this.w + 11, this.q + (this.i - 8) / 2, k);
/*    */   }
/*    */   
/*    */   public boolean shouldDraw(int i, int j) {
/* 97 */     return (this.q + this.i >= i && this.q <= j);
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncor\\uw.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */